<template>
  <div id="app">
    <router-view  v-if="isrouteralive"/>
  </div>
</template>

<script>
  export default {
    name: 'App',
		provide(){
			return {
				reload:this.reload
			}
		},
		data(){
			return{
				isrouteralive:true
			}
		},
		created() {
			// localStorage.setItem("clientId","bat")
			// websocket.Init("bat")
		},
		methods:{
			reload(){
				this.isrouteralive = false;
				this.$nextTick(function(){
					this.isrouteralive = true;
				})
			}
		}
  }
</script>

<style>

/* .content{
   overflow: auto;
    background-color: #fff !important;
  } */
  .search-wrapper {
    background-color: #F1F1F1;
    padding: 20px 0px 0px 0;
    margin-bottom: 20px;
    overflow:auto;
  }

  .search-param {
    display: flex;
  }

  .search-btn {
    margin-left: 30px;
    margin-bottom: 20px;
  }

  .page-wrapper {
    float: right;
    margin: 20px;
  }

/* 大样式 */





  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }

  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
  }

  .avatar {
    width: 100px;
    height: 100px;
    display: block;
  }

  .avatar-uploader .el-upload--picture-card{
    width: 100px;
    height: 100px;
    font-size: 28px;
    color: #8c939d;
    line-height: 100px;
    text-align: center;
  }
  /* 文件上传多图 */
  .el-upload-list .el-upload-list__item {
    width: 100px;
    height: 100px;
  }
/* 小样式 */
.avatar-uploaderSku .avatar-uploader-icon{
    font-size: 28px;
    color: #8c939d;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;

  }
  .avatar-uploaderSku .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .avatar-uploaderSku .avatar {
    width: 50px;
    height: 50px;
    display: block;
  }
  .avatar-uploaderSku .el-upload--picture-card{
    width: 50px;
    height: 50px;
    font-size: 28px;
    color: #8c939d;

    line-height: 50px;
    text-align: center;
  }
  /* 表格 */
  .table-th,.table-td{
    border: 1px solid #ccc;
    border-right: 0px;
    border-top: 0px;

  }
  .table-th{
    background-color: #F1F1F1;
    border-right: 0px;
    font-weight: 200;
    font-size: 15px;
   }


</style>
